package com.cet.java8;

/**
 * @program: cet-practice
 * @description:
 * @author: 陈恩涛
 * @create: 2022-12-07 13:00
 **/
public class FunctionalInterfaceTest {
    public static void main(String[] args) {
        VUtils.isTure(false).throwMessage("俺要抛出异常");

        VUtils.isTrueOrFalse(false)
                .trueOrFalseHandle(() -> {
                    System.out.println("true, 我要开始装b了！");
                }, () -> {
                    System.out.println("false, 装b是失败！");
                });

        VUtils.isBlankOrNot("问问").presentOrElseHandle(
                System.out::println,
                () -> System.out.println("空字符串")
        );
    }
}

